 /**
 * v-hasRole 包包含判断
 * Copyright (c) 2019 ruoyi
 */
 
 import {modules} from "~/env/config"
 export default {
   mounted(el, binding, vnode) {
     const { value } = binding
    // console.log(value)
     if(!modules.includes(value)){
        //console.log('移除对应节点')
        el.parentNode && el.parentNode.removeChild(el)
     }
     
   }
 }
 